<?php
require_once("../../resources/commons.php");
require_once("../../data/Item.php");
require_once("dashboard_commons.php");

SessionManager::getInstance()->checkSession();
header('Content-type: text/xml; charset=iso-8859-1');

$l_actionId=$_REQUEST[ZOOMAREA_ID_PARAMETER];
$l_closeFunction=$_REQUEST[ZOOMAREA_CLOSEFUNC_PARAMETER];

$l_action=Item::getFromPrimaryKey(base64_decode($l_actionId));
$l_me=SessionManager::getCurrentLoggedUserId();
if($l_action->isAccessAllowed($l_me)){
	displayAction($l_action);
}
?>

<center>
<a href="#" onclick="return <?=$l_closeFunction ?>('<?=$_REQUEST[ZOOMAREA_ID_PARAMETER] ?>');"><img border="0" src="../../resources/images/close.png"/></a>
</center>